package com.agv.core.servicesImpl;

import com.agv.core.dao.ClienteDAO;
import com.agv.core.dao.exception.QueryDAOException;
import com.agv.core.services.ClienteService;
import com.agv.core.services.exception.ServiceException;
import com.agv.dto.ClienteDTO;

public class ClienteServiceImpl implements ClienteService{

	private ClienteDAO clienteDao;
	
	public ClienteDAO getClienteDao() {
		return clienteDao;
	}

	public void setClienteDao(ClienteDAO clienteDao) {
		this.clienteDao = clienteDao;
	}

	public ClienteDTO getIdClientebyCod_Cliente(String codCliente)
	throws ServiceException {
		try {
			return clienteDao.getIdClientebyCod_Cliente(codCliente); 

		} catch (QueryDAOException e) {
			throw new ServiceException(e.getMessage(), e);
		}
	}
}
